/**
 * 
 */
package wong.board.client.widgets;

import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.IFrameElement;

/**
 * @author wong
 * 
 */
public class IFrame extends Component {

	private IFrameElement iFrameElement;

	public IFrame() {
		this.setStyleName(css.iframe());
	}

	@Override
	protected Element createElement() {
		iFrameElement = Document.get().createIFrameElement();
		return iFrameElement;
	}

	public void setSrc(String src) {
		this.iFrameElement.setSrc(src);
	}

}
